.class public Lcom/ss/android/socialbase/downloader/m/e;
.super Ljava/lang/Object;
.source "DownloadListenerUtils.java"


# direct methods
.method public static a(ILandroid/util/SparseArray;ZLes/zn0;Lcom/ss/android/socialbase/downloader/e/a;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Landroid/util/SparseArray<",
            "Les/sn0;",
            ">;Z",
            "Les/zn0;",
            "Lcom/ss/android/socialbase/downloader/e/a;",
            ")V"
        }
    .end annotation

    if-eqz p2, :cond_2

    if-eqz p1, :cond_2

    .line 1
    :try_start_0
    invoke-virtual {p1}, Landroid/util/SparseArray;->size()I

    move-result p2

    if-gtz p2, :cond_0

    goto :goto_2

    .line 2
    :cond_0
    monitor-enter p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 3
    :try_start_1
    invoke-virtual {p1}, Landroid/util/SparseArray;->clone()Landroid/util/SparseArray;

    move-result-object p2

    .line 4
    monitor-exit p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const/4 p1, 0x0

    .line 5
    :goto_0
    :try_start_2
    invoke-virtual {p2}, Landroid/util/SparseArray;->size()I

    move-result v0

    if-ge p1, v0, :cond_2

    .line 6
    invoke-virtual {p2, p1}, Landroid/util/SparseArray;->keyAt(I)I

    move-result v0

    .line 7
    invoke-virtual {p2, v0}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/sn0;

    if-eqz v0, :cond_1

    packed-switch p0, :pswitch_data_0

    :pswitch_0
    goto :goto_1

    .line 8
    :pswitch_1
    invoke-interface {v0, p3, p4}, Les/sn0;->b(Les/zn0;Lcom/ss/android/socialbase/downloader/e/a;)V

    goto :goto_1

    .line 9
    :pswitch_2
    invoke-interface {v0, p3}, Les/sn0;->h(Les/zn0;)V

    goto :goto_1

    .line 10
    :pswitch_3
    invoke-interface {v0, p3, p4}, Les/sn0;->c(Les/zn0;Lcom/ss/android/socialbase/downloader/e/a;)V

    goto :goto_1

    .line 11
    :pswitch_4
    invoke-interface {v0, p3}, Les/sn0;->c(Les/zn0;)V

    goto :goto_1

    .line 12
    :pswitch_5
    invoke-interface {v0, p3}, Les/sn0;->b(Les/zn0;)V

    goto :goto_1

    .line 13
    :pswitch_6
    invoke-interface {v0, p3}, Les/sn0;->a(Les/zn0;)V

    goto :goto_1

    .line 14
    :pswitch_7
    invoke-interface {v0, p3, p4}, Les/sn0;->a(Les/zn0;Lcom/ss/android/socialbase/downloader/e/a;)V

    goto :goto_1

    .line 15
    :pswitch_8
    invoke-interface {v0, p3}, Les/sn0;->e(Les/zn0;)V

    goto :goto_1

    .line 16
    :pswitch_9
    invoke-interface {v0, p3}, Les/sn0;->g(Les/zn0;)V

    goto :goto_1

    .line 17
    :pswitch_a
    invoke-interface {v0, p3}, Les/sn0;->d(Les/zn0;)V

    goto :goto_1

    .line 18
    :pswitch_b
    invoke-interface {v0, p3}, Les/sn0;->f(Les/zn0;)V

    goto :goto_1

    .line 19
    :pswitch_c
    instance-of v1, v0, Les/xm0;

    if-eqz v1, :cond_1

    .line 20
    check-cast v0, Les/xm0;

    invoke-virtual {v0, p3}, Les/xm0;->i(Les/zn0;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    :cond_1
    :goto_1
    add-int/lit8 p1, p1, 0x1

    goto :goto_0

    :catchall_0
    move-exception p0

    .line 21
    :try_start_3
    monitor-exit p1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :try_start_4
    throw p0
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    :catchall_1
    move-exception p0

    .line 22
    invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_2
    :goto_2
    return-void

    :pswitch_data_0
    .packed-switch -0x7
        :pswitch_c
        :pswitch_b
        :pswitch_a
        :pswitch_9
        :pswitch_8
        :pswitch_a
        :pswitch_7
        :pswitch_0
        :pswitch_6
        :pswitch_5
        :pswitch_0
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
    .end packed-switch
.end method
